package com.changpay.zywy.mvp.presenter

import com.changpay.zywy.base.BasePresenter
import com.changpay.zywy.ext.ss
import com.changpay.zywy.mvp.contract.IncomDetailContract
import com.changpay.zywy.mvp.model.IncomeDetailModel


/**
 * Created by chenxz on 2018/5/27.
 */
class IncomeDetailPresenter : BasePresenter<IncomDetailContract.Model, IncomDetailContract.View>(), IncomDetailContract.Presenter {
    override fun getEarningsDetailList(map: MutableMap<String, String>) {
        mModel?.getEarningsDetailList(map)?.ss(mModel, mView) {
            mView?.showEarningsDetailList(it.result)
        }
    }


    override fun createModel(): IncomDetailContract.Model? = IncomeDetailModel()

}